[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 RTRIM(SEXP1,SEXP2) (STRING)

 Function
  Trim a specified character from the right end of a string.

 Syntax
  RTRIM(str,ch)

   str = Any string expression.
   ch  = A string whose first character is used to strip characters from
         the right end of str.

 Return Type & Value
  STRING
  Returns the trimmed str.

 Remarks
  A common need in programming is to strip leading and/or trailing spaces
  (or other characters).  This function will strip a specified character
  from the right end of a string and return the trimmed string.

 Examples
  STRING s
  LET s = "   TEST   "
  PRINTLN RTRIM(s," ") ' Will print "   TEST"
  PRINTLN RTRIM(".....DA"+"TA.....",".") ' Will print ".....DATA"
  PRINTLN RTRIM(".....DA"+"TA....."," ") ' Will print ".....DATA....."

See Also: LTRIM() TRIM()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson